package cn.tedu.user.management.dao.persist.mapper;

import cn.tedu.user.management.pojo.entity.Rent;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

/**
* @author 86188
* @description 针对表【rent(借用设备信息记录表)】的数据库操作Mapper
* @createDate 2023-06-30 10:49:52
* @Entity target.pojo.entity.Rent
*/
public interface RentMapper extends BaseMapper<Rent> {

    /*
    * 根据id查看未归还记录
    */
    int countRentNoReturnById(Long id);

    /*
    * 根据user_id删除借用记录
    */
    int deleteByUserId(Long id);

}




